package org.twndmv.dao;

import java.util.List;

import javax.persistence.EntityManager;

import org.twndmv.bo.Person;

public interface PersonDAO {

	public Person getPersonByID(long id);
	
	public List<Person> getPersonByLastName(String name);
	
	public List<Person> getAllDrivers();
	
	public void createPerson(Person newPerson);
	
	public boolean deletePerson(long idOfDeadPerson);
	
	public int purgePeople();

	public void setEntityManager(EntityManager em);

	public void updatePerson(Person person);
}
